var context = '/';
function toLogon(context){
	//var backUrl = top.location.href;
	//location.href = context+"/u_login.jsp?backUrl="+backUrl;
	location.href = context+"/u_login.jsp";
}

function toRegister(context){
	//var backUrl = top.location.href;
	//location.href = context+"/customer/customerAction!registerPrepare.do?backUrl="+backUrl;
	location.href = context+"/customer/customerAction!registerPrepare.do";
}

function searchPainter(){
	var painter_name_search =  document.getElementById("painter_name_search").value;

	if( painter_name_search == null || painter_name_search == ""){
		alert("请输入搜索关键字。");
		return;
	}

	painter_name_search = encodeURIComponent(painter_name_search);
	painter_name_search = encodeURIComponent(painter_name_search);

	window.location.href = context+"front/painterAction!searchPainter.do?name="+painter_name_search+"&type=2";
}

   function   RightClick(){ 
	   window.event.returnValue=false; 
   } 
   
   //document.oncontextmenu = RightClick; 